package qnb._power;
//package test.power.config;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import weixinkeji.vip.jweb.power.config.JWPUserInterface;
import weixinkeji.vip.jweb.power.vo.JWPCodeVO;

/**
 * 客户端请求的url 触发权限检验时，权限框架会调用此接口的实例对象的方法（主要是为了拿到用户的权限
 * SessionCodeAndIdentifiterCode）
 * 
 * @author wangchunzi
 *
 */
public class UserPowerCode implements JWPUserInterface {

	/**
	 * 获取【会员等级】、【权限编号】的用户接口
	 * 
	 * @param req  基于Servlet的HttpServletRequest
	 * @param resp 基于Servlet的HttpServletResponse
	 * @return SessionCodeAndIdentifiterCodeVO 存储临时 值。返回多值* 封装
	 */
	@Override
	public JWPCodeVO getUserPowerCode(HttpServletRequest req, HttpServletResponse resp) {
		JWPCodeVO sai = new JWPCodeVO();
		sai.setGrades(new String[] { "1" ,"1232"});// "11","1"
		sai.setIdentifiter(new String[] { "11", "2", "1" });// "11","2","1"
		return sai;
	}
}
